package com.ojoin.trade.supplyloan_core.web.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlStatetaskRunresultvo;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlStattaskRunresult;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-10-22
 * Time: 上午11:14
 * To change this template use File | Settings | File Templates.
 */

public interface TbSlStattaskRunresultDao extends BaseDao<TbSlStattaskRunresult> {

    public void insertTbSlStattaskRunresult(TbSlStattaskRunresult runresultvo)throws BusinessException;


    public List<TbSlStattaskRunresult> queryTbSltaskRunresultByJoinidanddate(int joinid,String check_date)throws BusinessException;

   
    public List<TbSlStatetaskRunresultvo> queryAllTbSltaskRunresultBydate(String check_date)throws BusinessException;

    public List<TbSlStatetaskRunresultvo> queryAllTbSltaskRunresultBydate(String check_date,Pageable page)throws BusinessException;
    
    public List<TbSlStatetaskRunresultvo> queryAllFailureTbSltaskRunresultBydate(String check_date)throws BusinessException;

    public List<TbSlStatetaskRunresultvo> queryAllSuccessTbSltaskRunresultBydate(String check_date)throws BusinessException;
    
    public List<TbSlStatetaskRunresultvo> queryByPlatformAndMerchantUserIDAndDate(
    		TbSlStattaskRunresult tbs,
			Pageable page) throws BusinessException ;

    public List<TbSlStattaskRunresult> queryFailureByJoinid(int joinid,String curdate)throws BusinessException;
    
    public void deleteByPlateFormAndTime(int plateformId, String time) throws BusinessException;
    
    public void updateByIdOfPlatformUserAndtaskExecDate(TbSlStattaskRunresult runresultvo) throws BusinessException;
    
    
}
